<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>质量督导管理</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
    <?php include_once "public/home/html/bootstrap.php"  ?>
    <?php include_once "public/home/html/imgupload.php"  ?>
    <?php include_once "public/home/html/img_big.php"  ?>
    <link rel="stylesheet" href="<?php echo base_url().'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
    <link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>mui.min.css">
    <?php include_once "public/home/html/alert.php"  ?>   
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>student_feedback.js"></script>
    <link href="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/css/'?>bootstrap-select.min.css" rel="stylesheet" />
    <script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/'?>bootstrap-select.min.js"></script>
    <script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/i18n/'?>defaults-zh_CN.min.js"></script>
</head>
<body>
    <style>
        body{
            padding: 3%;
            text-align: center;
            background-color: #ffffff;
        }
        #submit{
            margin-top: 15%;
            width:30%;
        }
        .float_left{
            float:left;
        }
        .clear{
            clear:both;
        }
        .form-control[readonly]{
            background-color:#fff
        }
        
    </style>
    <input type="hidden" name='url' value="<?php echo base_url()?>">
    <div class="search-head header mui-bar mui-bar-nav row" style="background-color: #f7f9fa; border:none;">
        <div class="col-xs-1" style="margin-top: 3%">
            <a class=" Hui-iconfont Hui-iconfont-slider-left" href="javascript:void(0)" onclick="history.back();" style="color: #C9C9C9"></a>
        </div>
        <div class="col-xs-11">
            <h1 class="mui-title" style="color:#333;margin-left: -5%">信息反馈</h1>
        </div>
    </div>
    <!-- <h3>信息反馈</h3> -->
    <div action="" class="form" style='margin-top: 20%'>        
        <div>
            <div class="float_left">反馈类型：</div>
            <div class="float_left" style='margin-left: 2%;margin-top: -2%;width: 200px'>
                <?php if(!isset($detail)): ?>
                <select class="selectpicker type">
                    <option value='0' checked>请选择反馈类型</option>
                    
                </select>
                <?php else: ?>
                    <input type="text" value="<?=estr($detail,'category')?>" readOnly>
                <?php endif ?>

                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
        <?php if(!isset($detail)): ?>
        <div id="role_content">
            <div style="height: 20px"></div>
            <div class="float_left">当前角色：</div>
            <div class="float_left" style='margin-left: 2%;margin-top: -2%;width: 200px'>
                <select class="selectpicker role" id="role">
                    <option value='0' checked>请选择角色</option>
                    
                </select>
                <div class="clear"></div>
            </div>
        </div>
        <?php endif ?>
        <div style='padding-top: 10%'>
            <textarea type="text" class="form-control" id="content" placeholder="请输入反馈内容" rows="5" <?php if(isset($detail))echo 'readonly' ?>><?php if(isset($detail))echo $detail['content']; ?></textarea>
        </div>     
        <div id="img_upload">
            <ul class="upload-ul clearfix">
                <?php if(!isset($img)): ?>
                <li class="upload-pick">
                    <div class="webuploader-container clearfix" id="Upload"><div class="webuploader-pick webuploader-pick-hover"></div><div id="rt_rt_1dfpj0lt21pse1nlu1lgl1fjr1nfk1" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 90px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept=""><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></div>
                </li>
                <?php else: ?>
                    <?php  foreach ($img as $k => $v) : ?>
                        <li>
                            <img src="<?=base_url().$v['img']?>" alt="" style="width: 120px; height: 90px;" class='imgbig<?=$k?>' onclick='Big(this)'>
                        </li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        </div>   
    </div>
    <?php if(!isset($detail)): ?>
    <input class="btn btn-primary" id="submit" type="button" value="提交">    
    <?php endif ?>
    <script>    
        function Big(t){
            var class_name=$(t).attr('class');
            imgBig(class_name);
        }
    </script>
</body>
</html>
